/*
 * Ui.java
 *
 * Created on 5-mei-2011, 19:50:01
 */
package org.grobben.sqmconverter.ui.swing;

/**
 * This class implements an UI for the SQM Converter.
 * @author N. Grobben
 * @version 1.0
 */
public class Ui extends javax.swing.JPanel {

    /** Creates new form Ui */
    public Ui() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jButton1 = new javax.swing.JButton();
        jTextField1 = new javax.swing.JTextField();
        jLabel1 = new javax.swing.JLabel();
        jTextField2 = new javax.swing.JTextField();
        jLabel2 = new javax.swing.JLabel();
        jButton2 = new javax.swing.JButton();

        setBorder(javax.swing.BorderFactory.createTitledBorder("SQM Converter"));
        setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        jButton1.setText("Convert");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });
        add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(273, 153, -1, -1));

        jTextField1.setText("21.0");
        add(jTextField1, new org.netbeans.lib.awtextra.AbsoluteConstraints(99, 138, 156, -1));

        jLabel1.setText("SQM Waarde: ");
        add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(25, 141, -1, -1));

        jTextField2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField2ActionPerformed(evt);
            }
        });
        add(jTextField2, new org.netbeans.lib.awtextra.AbsoluteConstraints(99, 169, 156, -1));

        jLabel2.setText("NELM Waarde : ");
        add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(18, 172, -1, -1));

        jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/grobben/sqmconverter/ui/swing/SQM.jpg"))); // NOI18N
        add(jButton2, new org.netbeans.lib.awtextra.AbsoluteConstraints(362, 42, 193, 248));
    }// </editor-fold>//GEN-END:initComponents

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
    //TODO add your handeling code here:
    }//GEN-LAST:event_jButton1ActionPerformed

    private void jTextField2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField2ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextField2ActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JTextField jTextField1;
    private javax.swing.JTextField jTextField2;
    // End of variables declaration//GEN-END:variables
}
